Einhugur Word Plugin for Xojo

Document.AddNewCharacterStyle Method

Adds new character style to the document.

AddNewCharacterStyle(
   id as String,
   name as String,
   basedOn as EinhugurWord.CharacterStyle) as EinhugurWord.CharacterStyle

Parameters

id
Id of the new style. (This must be unique within the document)
name
Name of the new style.
basedOn
Base style which this style should inherit from or nil if there should be no base style.

Returns

EinhugurWord.CharacterStyle
Newly crated CharacterStyle object instance.

Remarks

This function can throw WordException.

See Also

Document Class